
import { categoryData } from '../models/category';

console.log('category', categoryData);

export async function category(ctx, next) {
  let data = await categoryData();
  ctx.status = 200;
  ctx.body = data;
  await next();
}
